
<!DOCTYPE html>
<html lang="zh-cn">
<head>
        <meta charset="utf-8">
        <title>政府公文流转系统</title>
        <!-- zui -->
        <link href="__CSS__/zui.min.css" rel="stylesheet">
        <style type="text/css">
            h1{
                text-align: center;
                color:#ccc;
            }
            .left,.right{
                /*height:500px;*/
                /*border:1px solid red;*/
            }
            .navlist{
                float:right;
            }
            .navlist li{
                float:left;
                list-style: none;
                font-size:15px;
                margin-left: 10px;
            }
            a{
                color:#336699;
                margin-left: 12px;
            }
            .imgdiv{
                width:220px;
                height:160px;
                background-color:#ccc; 
            }
            .imgurl{
                width:160px;
                height:160px;
                margin-left: 20px;
                border-radius: 200px;
                background:url("__STATIC__/Imgs/2.jpg");
                {if condition="$user.imgurl neq ''"}
                    background:url("__STATIC__/../uploads/{$user['imgurl']}");
                {/if}
                background-size: 160px 160px;

            }
        </style>
        {block name="css"}
        <style type="text/css">
        </style>
        {/block}
</head>
<body>
    <div class="container">
    <!-- <div style="float:right;margin-top:15px;"><a href="{:url('Index/index')}" class="btn btn-info " >退出登录</a></div> -->
        <div class="head col-md-12">
            <h1 >南阳市政府公文流转系统</h1>
          <ul class='navlist'>
              <li><a href="{:url('User/person')}" >当前用户:{$user.name} &nbsp;&nbsp;职位:{$user.position}</a></li>
              {if condition="$intersys neq ''"}
              <li><a href="" data-toggle="modal" data-target="#myModal">部门通知<i class="icon icon-spin icon-refresh"></i></a></li>
              {else /}
              <li><a href="" data-toggle="modal" data-target="#myModal">部门通知</a></li>
              {/if}
              {if condition="$news neq ''"}
              <li><a href="" data-toggle="modal" data-target="#myModal1">个人消息<i class="icon icon-spin icon-refresh"></i></a></li>
              {else /}
              <li><a href="" data-toggle="modal" data-target="#myModal1">个人消息</a></li>
              {/if}
              <li><a href="{:url('Index/outlogin')}" class="" >退出登录</a></li>
          </ul>
        </div>
        <!--========================系统消息框体==================================================-->
        <div class="modal fade" id="myModal">
          <div class="modal-dialog">
            <div class="modal-content">
              {if condition="$intersys neq ''"}
                {volist name="intersys" id="vo"}
                <div >
                    <p>消息名称:&nbsp;&nbsp;{$vo.sysname}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发送时间:<?PHP echo date('Y-m-d H:i:s',$vo['starttime'])?></p>
                    <p>内容:{$vo.content}</p>
                    <a href="{:url('Sys/readsys',['id'=>$vo.id])}" class="btn btn-info pull-right" style="margin-top:-20px">我知道了</a>
                </div>
                <hr>
                {/volist}
              {else/}
                   <h1>暂无数据</h1>
              {/if}
            </div>
          </div>
        </div><!--对话框内容-->
          <!--========================系统消息框体end==================================================-->
          <!--========================单条消息框体==================================================-->
        <div class="modal fade" id="myModal1">
          <div class="modal-dialog">
            <div class="modal-content">
              {if condition="$news neq ''"}
                {volist name="news" id="vo"}
                <div >
                    <p>消息名称:&nbsp;&nbsp;{$vo.newsname}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发送时间:<?PHP echo date('Y-m-d H:i:s',$vo['sendtime'])?></p>
                    <p>内容:{$vo.content}</p>
                    <a href="{:url('Sys/readnews',['id'=>$vo.id])}" class="btn btn-info pull-right" style="margin-top:-20px">我知道了</a>
                </div>
                <hr>
                {/volist}
              {else/}
                   <h1>暂无数据</h1>
              {/if}
            </div>
          </div>
        </div><!--对话框内容-->
          <!--========================单条消息框体end==================================================-->
        <div class="col-md-3 left" > 
            <nav class="menu" data-ride="menu" style="width: 220px">
              <ul class="nav nav-primary">
                <li>
                    <div class="imgdiv">
                        <div class="imgurl">
                           
                        </div>
                    </div>


                </li>
                <li><a href="{:url('UserIndex/index')}"><i class="icon icon-th"></i> 职员列表</a></li>
                <li class="nav-parent show">
                  <a href="javascript:;"><i class="icon icon-flag"></i> 消息功能</a>
                  <ul class="nav    ">
                    <li><a href="{:url('Sys/gointernew')}">会议通知</a></li>
                    <li><a href="{:url('Sys/goonenew')}">单人信件</a></li>
                  </ul>
                </li>
                <li class="nav-parent show">
                  <a href="javascript:;"><i class="icon icon-flag"></i> 文档功能</a>
                  <ul class="nav">
                    <li><a href="{:url('Document/asklist')}">审核文书</a></li>
                    <li><a href="{:url('Document/bookslist')}">已归档文书</a></li>
                    <li><a href="{:url('Document/gonewdocument')}">起草文书</a></li>
                    <!-- <li><a href="{:url('Document/gomydocu')}">我的上传</a></li> -->
                    <!-- <li><a href="{:url('Document/gopushdocument')}">本地上传</a></li> -->
                  </ul> 
                </li>
                <li class="nav-parent  nav-parent">
                  <a href="javascript:;"><i class="icon icon-flag"></i> 个人中心</a>
                  <ul class="nav">
                    <li><a href="{:url('User/index')}">修改个人信息</a></li>
                    <li><a href="{:url('User/goeditpass')}">修改密码</a></li>
                    <li><a href="{:url('User/gopenname')}">修改签名</a></li>
                    <!-- <li><a href="javascript:;">上传图章</a></li> -->
                  </ul>
                </li>
              </ul>
            </nav>
        </div><!--左侧主体结束-->
        <div class="col-md-9 right" > 
        {block name="main"}
            <!--部门所有人员-->
            <table class="table table-hover">
                    <thead>
                      <tr>
                        <th>员工编号</th>
                        <th>员工姓名</th>
                        <th>员工职位</th>
                        <th>联系方式</th>
                        {if condition="$user.position eq '局长'"}
                        <th>
                                <a href="{:url('UserIndex/goadduser',['id'=>$user.class])}" class="btn btn-info">添加职员</a>
                        </th>
                        {/if}
                      </tr>
                    </thead>
                    <tbody>
                        {volist name="userlist" id="vo"}
                        <tr>
                            <td>
                                {$vo.id}
                            </td>
                            <td>
                                {$vo.name}
                            </td>
                            <td>
                                {$vo.position}
                            </td>
                            <td>
                                {$vo.phone}
                            </td>
                            {if condition="$user['position'] eq '局长'"}
                                {if condition="$vo['position'] neq '局长'"}
                                <td>
                                    <a href="{:url('UserIndex/goeditposition',['id'=>$vo.id])}" class="btn btn-success">变更职位</a>
                                    <a href="{:url('UserIndex/del',['id'=>$vo.id])}" class="btn btn-danger">删除职员</a>
                                </td>
                                {else/}
                                <td>
                                    <a href="" class="btn btn-success" disabled>变更职位</a>
                                    <a href="" class="btn btn-danger" disabled>删除职员</a>
                                </td>
                                {/if}
                            {/if}
                        </tr>
                        {/volist}
                    </tbody>
                    </table>


        {/block}
        </div><!--左侧主体结束-->
    </div>
    <!-- jQuery (ZUI中的Javascript组件依赖于jQuery) -->
    <script src="__JS__/jquery-2.1.4.min.js"></script>
    <!-- ZUI Javascript组件 -->
    <script src="__JS__/zui.min.js"></script>
    <script type="text/javascript">
        // $('.menu .nav').on('click', 'li:not(.nav-parent) > a', function() {
        //     var $this = $(this);
        //     $('.menu .nav .active').removeClass('active');
        //     $this.closest('li').addClass('active');
        //     $this.closest('.nav-parent').addClass('active');
        // });
    </script>
    {block name="js"}

    {/block}

</body>
</html>